package level.editor.view.action;

import javax.swing.AbstractAction;
import javax.swing.ImageIcon;

import level.editor.view.desktop.Desktop;

public abstract class DesktopAction extends AbstractAction
{
	public DesktopAction(String name, Desktop desktop, String iconName)
	{
		super(name, new ImageIcon(iconName));
		this.desktop = desktop;
	}

	public DesktopAction(String name, Desktop desktop)
	{
		super(name);
		this.desktop = desktop;
	}

	protected Desktop desktop;
}
